<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'category-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Los campos con <span class="required">*</span> son obligatorios.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tag'); ?>
		<?php echo $form->textField($model,'tag',array('size'=>60,'maxlength'=>200)); ?>
		<?php echo $form->error($model,'tag'); ?>
                <br>(Agregar el nombre de la categoría en ingles a traducir)
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'id_group'); ?>
		<?php echo $form->dropDownList($model, 'id_group', CHtml::listData(Group::model()->findAll(), 'id', 'name'),array('empty' => 'Seleccione un  grupo')); ?>
		<?php echo $form->error($model,'id_group'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
                <?php echo $form->dropDownList($model, 'status', array(1=>'Habilitada', 2=>'Desabilitada')); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Guardar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->